export default {
  install(app) {
    app.mixin({
      onLoad() {
        const page = getCurrentPages().pop()
        if (page) {
          uni.showShareMenu({
            withShareTicket: true,
            menus: ['shareAppMessage', 'shareTimeline'],
          })
        }
      },
    })
  },
}